package com.ht.oss.utils;

public class TypeCheckUtil {
    private static final String[] imageTypes = {"jpg", "jpeg", "png"};

    public static boolean isImage(String type) {
        for (String it : imageTypes) {
            if (it.equals(type)) {
                return true;
            }
        }
        return false;
    }
}
